@extends('admin.layout.layout')
@section('content')   
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">订单修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>                                
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6 col-lg-offset-3">   
                      @if (count($errors) > 0)
                            <div class="alert alert-danger">
                                <ul>
                                    @foreach ($errors->all() as $error)
                                        <li>{{ $error }}</li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif
<form role="form"  action="{{url('/admin/zhifu/list')}}" method="post" enctype="multipart/form-data">    
   <input type="hidden" name="id" value="{{ $res->id }}">
   <div class="form-group">
        <label>订单号</label>
        <input class="form-control" type="text" disabled="disabled" name="id" value="{{ $res->id }}">
    </div>
     <div class="form-group">
        <label>顾客ID</label>
        <input class="form-control" type="text" disabled="disabled" name="nid" value="{{  $res->nid }}">
    </div>
     <div class="form-group">
        <label>产品ID</label>
        <input class="form-control" type="text" name="gid" value="{{ $res->gid }}">
    </div>
    <div class="form-group">
        <label>购买数量</label>
        <input class="form-control" type="text" name="inum" value="{{ $res->inum }}">
    </div>
     <div class="form-group">
        <label>商品单价</label>
        <input class="form-control" type="text" name="price" value="{{ $res->price }}">
    </div> 
    <div class="form-group">
        <label>商品总价</label>
        <input class="form-control" type="text" name="figure" value="{{ $res->figure }}">
    </div>
    <div class="form-group">
        <label>运输方式</label>
        <input class="form-control" type="text" name="payment" value="{{ $res->payment }}">
    </div>
    {{csrf_field()}}
    <button  class="btn btn-primary" type="submit">支付修改</button>
</form>   
                    </div>
                    <!-- /.col-lg-6 (nested) -->
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
@endsection
